<%@ page contentType="text/html; charset=UTF-8" %>
<%@page import="com.infomanage.enums.*"%>
<%@page import="com.infomanage.service.hr.*"%>
<%@page import="com.infomanage.po.*" %>
<%@page import="com.infomanage.vo.*" %>
<%  response.addDateHeader("Expires", 0);response.setHeader("Pragma","no-cache"); response.setHeader("Cache-Control","no-cache");%>
<%
	request.setCharacterEncoding("UTF-8");
	String personInfoId = request.getParameter("");
	if(personInfoId == null) personInfoId = "";
	PersonItem item  = PersonManageService.loadPersonBaseInfo(request, response, out);
	int adminlevel = TechnicDegreeType.ENGINEER.value();
	String birthDate = "";
	String birthPlace = "";
	int bloodType = BloodType.A.value();
	int deptId = -1;
	int highestDigree = -1;
	String hukouPlace = "";
	String idNumber = "";
	String joinWay = "";
	String joinWorkYear = "";
	String name = "";
	String national = "";
	String nativePlace = "";
	int personId = -1;
	String politicalFace = "";
	int position = -1;
	int sex = SexType.MAN.value();
	int techlevel = -1;
	String workerUser = "";
	String workyear = "";
	String deptName = "";
	String phoneNo = "";
	if(item != null){
		Person person = item.getBean();
		Department dept = item.getDept();
		adminlevel = person.getAdminlevel();
		birthDate = person.getBirthDate();
		birthPlace = person.getBirthPlace();
		bloodType = person.getBloodType();
		deptId = person.getDeptId();
		deptName = dept.getPath();
		highestDigree = person.getHighestDigree();
		hukouPlace = person.getHukouPlace();
		idNumber = person.getIdNumber();
		joinWay = person.getJoinWay();
		joinWorkYear = person.getJoinWorkyear();
		name = person.getName();
		national = person.getNational();
		nativePlace = person.getNativePlace();
		personId = person.getPersonId();
		politicalFace = person.getPoliticalFace();
		position = person.getPosition();
		sex = person.getSex();
		techlevel = person.getTechlevel();
		workerUser = person.getWorkerUser();
		workyear = person.getWorkyear();
		phoneNo = person.getPhoneNo() == null ? "" : person.getPhoneNo();
	}
%>
<html>
<head>
	<title>员工基本信息</title>
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
	<link href="../../css/table.css" rel="stylesheet" type="text/css">
	<style type="text/css">
		table tr{
			height: 35px;
		}
	</style>
</head>
<body  rightmargin="0" bottommargin="0" leftmargin="0" topmargin="0" style="overflow: auto;">
 	<form name="infoForm" action="personManage_action.jsp" target="actionFrame" method="get">
	<input type="hidden" name="infoType" value="baseInfo">
	<input type="hidden" name="actionType" value="">
	<table class="personDataTable" style="width: 985px;table-layout: fixed;" cellpadding="0" cellspacing="0">
		<col width="9%">
		<col width="20%">
		<col width="14%">
		<col width="20%">
		<col width="9%">
		<col width="10%">
		<col width="9%">
		<col width="15%">
		<tr>
			<td class="field">
				姓名
			</td>
			<td>
				<%=name %>
			</td>
			<td class="field">
				身份证
			</td>
			<td title="<%=idNumber%>">
				<%=idNumber%>
			</td>
			<td class="field">
				性别
			</td>
			<td>
				<%=SexType.valueOf(sex).title()%>
			</td>
			<td class="field">
				出生地
			</td>
			<td>
				<%=birthPlace%>
			</td>
		</tr>
		
		<tr>
			<td class="field">
				民族
			</td>
			<td>
				<%=national%>
			</td>
			<td class="field">
				出生日期
			</td>
			<td>
				<%=birthDate%>
			</td>
			<td class="field">
				血型
			</td>
			<td>
				<%=BloodType.valueOf(bloodType).title()%>
			</td>
			<td class="field">
				用工性质
			</td>
			<td>
				<%=workerUser%>
			</td>
		</tr>
		
		<tr>
			<td class="field">
				参加工作途径
			</td>
			<td>
				<%=joinWay%>
			</td>
			<td class="field">
				户口所在地
			</td>
			<td>
				<%=hukouPlace%>
			</td>
			<td class="field">
				政治面貌
			</td>
			<td>
				<%=politicalFace%>
			</td>
			<td class="field">
				籍贯
			</td>
			<td>
				<%=nativePlace%>
			</td>
		</tr>
		
		<tr>
			<td class="field">
				所属单位
			</td>
			<td>
				<%=deptName%>
			</td>
			<td class="field">
				行政级别
			</td>
			<td>
				<%=AdministrationDegreeType.valueOf(adminlevel).title()%>
			</td>
			<td class="field">
				技术级别
			</td>
			<td>
				<%=TechnicDegreeType.valueOf(techlevel).title()%>
			</td>
			<td class="field">
				职务
			</td>
			<td>
				<%=PositionType.valueOf(position).title()%>
			</td>
		</tr>
		
		<tr>
			<td class="field">
				参加工作时间
			</td>
			<td colspan="1">
				<%=workyear%>
			</td>
			<td class="field" colspan="1">
				进入本单位工作时间
			</td>
			<td>
				<%=joinWorkYear%>
			</td>
			<td class="field">
				最高学历
			</td>
			<td>
				<%=DegreeType.valueOf(highestDigree).title()%>
			</td>
			<td class="field">
				手机号
			</td>
			<td>
				<%=phoneNo%>
			</td>
		</tr>
	</table>
</body>
</html>